<!DOCTYPE html>
<html>
    <head>
        <title>NK's Guestbook: add commentary</title>
        <meta name="description" content="" />
        <meta name="author" content="Nikolay Konovalov" />
        <meta name="viewport" content="width=device-width; initial-scale=1.0" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="./views/message_table.css" type="text/css"/>
        <link rel="stylesheet" href="./views/comment_table.css" type="text/css"/>        
        <link rel="stylesheet" href="./views/msgswrapper.css" type="text/css"/>
        <link rel="stylesheet" href="./views/submit_table.css" type="text/css"/>
    </head>
    <body>
            <header>
                <h1>Guestbook</h1>
            </header>
            <nav>
                <p>
                    <a href="javascript:history.back()">Main Page</a>
                </p>
                <p>
                    <a href="mailto:konovalov.nk@gmail.com">Contact</a>
                </p>
            </nav>
        <div class="msgswrapper" id="container">
            <?php $htmlgen->showSourceMessageWithComments($_REQUEST['msgid']); ?>

            <table class="tablesubmit">
                <tr>
                    <th>Add commentary</th>
                </tr>
            </table>        <form id="addcmtform" name="addcmtform" method="post" action="addcommentary.php">
                <table class="tablesubmit">
                    <tr>
                        <th>Name</th>
                        <td>
                            <input name="author" type="text" id="name" value="Anonymous"/>
                        </td>
                    </tr>
                    <tr>

                        <th>Comment</th>
                        <td><textarea name="message" id="text">Write your message here...</textarea></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <?php echo $hiddenmsgsinput; ?>
                            <input type="submit" name="submit_btn" value="Submit" />
                            <input type="reset" name="reset_btn" value="Reset" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </body>
</html>
